package org.flow.basic.num;

import java.math.BigDecimal;

/**
 * @author xl-9527
 * @since 2025/7/7
 */
public class BigDecimalDemo {

    public void test() {
        final BigDecimal bigDecimal = new BigDecimal("50.22");
        System.out.println(bigDecimal);
        final BigDecimal bigDecimal2 = new BigDecimal(50.22);
        final BigDecimal bigDecimal1 = BigDecimal.valueOf(50.22);
        System.out.println(bigDecimal2);
        System.out.println(bigDecimal1);
    }
}
